package com.domain.vote;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

import java.time.LocalDateTime;
/**
 * 投票记录，关联关系
 */
@RedisHash("uservote")
@ToString(callSuper = false)
@Data
@EqualsAndHashCode(callSuper=false)
@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
public class UserVote {
    @Id
    public String id;

    private String userId;
    private String articleId;
    private LocalDateTime createTime;

}
